﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using ThanhTu.GNC.Media.KQXS.DataAccess.BL;

namespace GNCMedia.KQXS
{
    public partial class ListNews : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            try
            {
                int grid = Convert.ToInt32(Request.QueryString["ID"]);
                BreakingNewsBL br = new BreakingNewsBL();
                int rowcont = 0;
                newsdetail.DataSource = br.selectAll_groupnews(grid, 1, 10, ref rowcont);
                newsdetail.DataBind();
                
              
            }
            catch (Exception ex)
            {
                Response.Write("lỗi load all news" + ex);
            }
            finally
            {

            }
        }
    }
}